<div>
	<div class="left">
  		<?php require_once 'filter.php';?>
	</div>
	<div id="central-content-questions" style="width:770px" class="left">
		<?php if (lang('opinions_banner') != '[opinions_banner]'){?>
			<div id="opinions_banner"><?php echo lang('opinions_banner',true);?></div>
		<?php }?>
		
		<div class="head rposition"> <h4><?php echo lang('latest_opinions');?></h4></div>
		<div id="questions-container">
			<?php if (count($opinions)){?>
				<div id="opinion-list" class="container">
				
				<div class="content" style="padding:10px">
						<?php foreach($opinions as $opinion){?>
						
							<div class='opinion-item'>
								<div class='question-head' style="font-weight: bold; font-size: 14px;"><?php echo (strlen($opinion->user_name) ? $opinion->user_name : lang('anonimus'))?></div>
								<br />
								<div class='question-text'>
									<div class="left" style="width :100px">
										<?php 
										if (empty($opinion->img1)) {
											$opinion->img1 = $opinion->img2;
										}
										echo resize_image($opinion->img1,NORMAL_IMAGE_PATH,NORMAL_IMAGE_URL,'img_thumb_width','img_thumb_height',$opinion->name,'detailsthumb');?>
									
									</div>
									<div class="left lpadding10"  style="width :630px">
										<a href="<?php echo get_product_url($opinion->name,$opinion->product_id)?>"><?php echo $opinion->name?></a>
										<br />
										<br />
											<?php echo $opinion->opinion?>
									</div>
								<div class="clear"></div>
								</div>
								<div>
									<div class="left grey">
										<?php echo date('d/m/Y',strtotime($opinion->date))?>
									</div>
									<div class="clear"></div>
								</div>
								<hr>
								<br />
							</div>
							
						<?php }?>
				</div>
				<div class="page_navigation"></div>
				</div>
			<?php }?>
		</div>
	
	</div>
	<div class="clear"></div>
</div>

<div id="question-details-modal"></div>
